package com.jz.community.sharesdk.share;

import android.app.Activity;
import android.content.Context;

import com.jz.community.basecomm.bean.ShareInfo;
import com.jz.community.basecomm.reflection.share.ShareClickListener;
import com.jz.community.sharesdk.share.view.ShareDialog;

/**
 * Created by Tony.Fan on 2018/6/13 13:42
 * 请通过反射暴露出去的方法来完成相应的跳转
 */
public class JumpActionUtils {


    private JumpActionUtils() {

    }

    /**
     * 跳转到页面
     *
     * @param context
     * @param shareInfo
     */
    public static void jumpSharePage(Context context, final ShareInfo shareInfo) {
        new ShareDialog((Activity) context, shareInfo);
    }
    /**
     * 跳转到页面
     *
     * @param context
     * @param shareInfo
     */
    public static void jumpSharePage(Context context, final ShareInfo shareInfo,ShareClickListener shareClickListener) {
        new ShareDialog((Activity) context, shareInfo,shareClickListener);
    }
}
